HAL RAMCFG types migration

This section provides information about the HAL RAMCFG types migration.

HAL RAMCFG callback ID type definition

HAL1

HAL2

typedef enum
{
  HAL_RAMCFG_MSPINIT_CB_ID
  HAL_RAMCFG_MSPDEINIT_CB_ID
  HAL_RAMCFG_SE_DETECT_CB_ID
  HAL_RAMCFG_DE_DETECT_CB_ID
  HAL_RAMCFG_ALL_CB_ID
} HAL_RAMCFG_CallbackIDTypeDef;
  • Removed from HAL2 : the callback registration is managed by dedicated functions for each RAMCFG event. For more details, see : HAL RAMCFG IRQ Handler

  • HAL_RAMCFG_MSPINIT_CB_ID and HAL_RAMCFG_MSPDEINIT_CB_ID are removed because the functions HAL_RAMCFG_MspInit() and HAL_RAMCFG_MspDeInit() are removed.

Related concepts:


HAL RAMCFG state type definition

HAL1

HAL2

typedef enum
{
  HAL_RAMCFG_STATE_RESET
  HAL_RAMCFG_STATE_READY
  HAL_RAMCFG_STATE_BUSY
  HAL_RAMCFG_STATE_ERROR
} HAL_RAMCFG_StateTypeDef;
The state machine is removed in HAL2.

HAL RAMCFG handle type definition

HAL1

HAL2

typedef RAMCFG_HandleTypeDef;
The handle is removed in HAL2